import request from './request.js'
import { Decrypt } from '@/utils/aes.js'

//我的课程
export function myCourses(courseCode){
    return request({
        url:'/api/course/myCourses',
        method:'POST',
        data:courseCode,
        headers:{
            // 本地保存的accessToken
            'Authorization': Decrypt(localStorage.getItem('token'))
        }
    })
}